import { IDateLineChart } from "@/types/echart"
import { IBase } from "../base"

export type ILogistics=Omit<IBase,'name'|'totalNum'>

export interface ILogisticsProps extends ILogistics{
    img: string
}

export interface ITotalLogisticsProps extends Pick<ILogistics,'unit'|'num'>{
    img: string,
    name:string
}

export interface ILogisticsQuantity extends Pick<ILogistics,'unit'|'num'> {
    title:string,
}

export interface ITransport {
    name:string,
    toAmount:string,
    sendAmonut:string,
    storeAmount:string,
}
export interface ITransportList {
    name:string
    list:Array<Partial<ITransport>>
}

export interface ITotalTransport{
    totalTransport: Partial<Pick<ILogistics,'unit'|'num'>>,
    tarnTransport: Partial<ILogistics>,
    carTransport: Partial<ILogistics>,
}

export interface ILogisticsFull extends ITotalTransport{
    transportList:Partial<ITransportList>
    logisticsQuantity:Array<Partial<ILogisticsQuantity>>
    pieLeftChart: Partial<IDateLineChart>,
    pieRightChart: Partial<IDateLineChart>,
    chinaChart: Partial<IDateLineChart>
}
